class AddUninstallData < ActiveRecord::Migration
  def self.up
    Uninstall.delete_all
    Uninstall.create(:part => "ボンネット", :car_size => "軽自動車", :disassemble_time => 0.1, :assemble_time => 0.2, :recombine_time => 0.3)
    Uninstall.create(:part => "ボンネット", :car_size => "普通車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 0.5)
    Uninstall.create(:part => "ボンネット", :car_size => "大型車", :disassemble_time => 0.3, :assemble_time => 0.6, :recombine_time => 0.9)
    
    Uninstall.create(:part => "フロントエンドパネル", :car_size => "軽自動車", :disassemble_time => 0.08, :assemble_time => 0.16)
    Uninstall.create(:part => "フロントエンドパネル", :car_size => "普通車", :disassemble_time => 0.08, :assemble_time => 0.16)
    Uninstall.create(:part => "フロントエンドパネル", :car_size => "大型車", :disassemble_time => 0.08, :assemble_time => 0.16)
    
    Uninstall.create(:part => "フェンダー", :car_size => "軽自動車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 0.5)
    Uninstall.create(:part => "フェンダー", :car_size => "普通車", :disassemble_time => 0.23, :assemble_time => 0.47, :recombine_time => 0.7)
    Uninstall.create(:part => "フェンダー", :car_size => "大型車", :disassemble_time => 0.23, :assemble_time => 0.47, :recombine_time => 0.7)
    
    Uninstall.create(:part => "フロントドア", :car_size => "軽自動車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 1.1)
    Uninstall.create(:part => "フロントドア", :car_size => "普通車", :disassemble_time => 0.2, :assemble_time => 0.4, :recombine_time => 1.9)
    Uninstall.create(:part => "フロントドア", :car_size => "大型車", :disassemble_time => 0.2, :assemble_time => 0.4, :recombine_time => 2.5)
    
    Uninstall.create(:part => "リアドア", :car_size => "軽自動車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 1.15)
    Uninstall.create(:part => "リアドア", :car_size => "普通車", :disassemble_time => 0.2, :assemble_time => 0.4, :recombine_time => 1.8)
    Uninstall.create(:part => "リアドア", :car_size => "大型車", :disassemble_time => 0.23, :assemble_time => 0.47, :recombine_time => 2.4)
    
    Uninstall.create(:part => "バックドア", :car_size => "軽自動車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 1.3)
    Uninstall.create(:part => "バックドア", :car_size => "普通車", :disassemble_time => 0.27, :assemble_time => 0.53, :recombine_time => 1.2)
    Uninstall.create(:part => "バックドア", :car_size => "大型車", :disassemble_time => 0.3, :assemble_time => 0.6, :recombine_time => 1.6)
    
    Uninstall.create(:part => "エンドパネル", :car_size => "軽自動車", :disassemble_time => 0.08, :assemble_time => 0.16)
    Uninstall.create(:part => "エンドパネル", :car_size => "普通車", :disassemble_time => 0.08, :assemble_time => 0.16)
    Uninstall.create(:part => "エンドパネル", :car_size => "大型車", :disassemble_time => 0.08, :assemble_time => 0.16)
    
    Uninstall.create(:part => "トランク", :car_size => "軽自動車")
    Uninstall.create(:part => "トランク", :car_size => "普通車", :disassemble_time => 0.2, :assemble_time => 0.4, :recombine_time => 0.9)
    Uninstall.create(:part => "トランク", :car_size => "大型車", :disassemble_time => 0.27, :assemble_time => 0.53, :recombine_time => 1.2)
    
    Uninstall.create(:part => "リアクォータ", :car_size => "軽自動車")
    Uninstall.create(:part => "リアクォータ", :car_size => "普通車")
    Uninstall.create(:part => "リアクォータ", :car_size => "大型車")
    
    Uninstall.create(:part => "ロッカーパネル", :car_size => "軽自動車")
    Uninstall.create(:part => "ロッカーパネル", :car_size => "普通車")
    Uninstall.create(:part => "ロッカーパネル", :car_size => "大型車")
    
    Uninstall.create(:part => "フロントパネル", :car_size => "軽自動車", :disassemble_time => 1, :assemble_time => 1.5)
    Uninstall.create(:part => "フロントパネル", :car_size => "普通車", :disassemble_time => 1, :assemble_time => 1.5)
    Uninstall.create(:part => "フロントパネル", :car_size => "大型車", :disassemble_time => 1, :assemble_time => 1.5)
    
    Uninstall.create(:part => "バックパネル", :car_size => "軽自動車")
    Uninstall.create(:part => "バックパネル", :car_size => "普通車")
    Uninstall.create(:part => "バックパネル", :car_size => "大型車")
    
    Uninstall.create(:part => "フロントバンパー", :car_size => "軽自動車", :disassemble_time => 0.17, :assemble_time => 0.33, :recombine_time => 0.5)
    Uninstall.create(:part => "フロントバンパー", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67, :recombine_time => 1)
    Uninstall.create(:part => "フロントバンパー", :car_size => "大型車", :disassemble_time => 0.4, :assemble_time => 0.8, :recombine_time => 1.2)
    
    Uninstall.create(:part => "リアバンパー", :car_size => "軽自動車", :disassemble_time => 0.1, :assemble_time => 0.2, :recombine_time => 0.3)
    Uninstall.create(:part => "リアバンパー", :car_size => "普通車", :disassemble_time => 0.23, :assemble_time => 0.47, :recombine_time => 0.7)
    Uninstall.create(:part => "リアバンパー", :car_size => "大型車", :disassemble_time => 0.27, :assemble_time => 0.53, :recombine_time => 0.8)
    
    Uninstall.create(:part => "フロントスポイラー", :car_size => "軽自動車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "フロントスポイラー", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "フロントスポイラー", :car_size => "大型車", :disassemble_time => 0.33, :assemble_time => 0.67)
    
    Uninstall.create(:part => "リアスポイラー", :car_size => "軽自動車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "リアスポイラー", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "リアスポイラー", :car_size => "大型車", :disassemble_time => 0.33, :assemble_time => 0.67)
    
    Uninstall.create(:part => "サイドスポイラー", :car_size => "軽自動車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "サイドスポイラー", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "サイドスポイラー", :car_size => "大型車", :disassemble_time => 0.33, :assemble_time => 0.67)
    
    Uninstall.create(:part => "プロテクションモール", :car_size => "軽自動車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "プロテクションモール", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "プロテクションモール", :car_size => "大型車", :disassemble_time => 0.33, :assemble_time => 0.67)
    
    Uninstall.create(:part => "リアバンパースポイラー", :car_size => "軽自動車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "リアバンパースポイラー", :car_size => "普通車", :disassemble_time => 0.33, :assemble_time => 0.67)
    Uninstall.create(:part => "リアバンパースポイラー", :car_size => "大型車", :disassemble_time => 0.33, :assemble_time => 0.67)
  end

  def self.down
    Uninstall.delete_all
  end
end
